Teaching the Backtracking Method using Intelligent Games

نویسنده

  • Anca Andrei
چکیده

Teaching programming techniques has always been a challenge. We exhibit an innovative way of teaching the backtracking programming strategy using educational games, in particular Sudoku. Compared to traditional ways of teaching backtracking, we used a new pseudocode that corresponds to the solution tree of the educational game. Most of the current textbooks present the traditional way to teach backtracking by showing the recursive call at the end of the backtrack() method. We will show an alternative to describing the backtrack() method by extending the solution with a choice, followed by the recursive call, which is in turn followed by an undo of that choice (that is, the backtracking step). As such, a path in the solution tree will correspond to a sequence of recursive calls of the backtrack() method. In this way, anyone who knows Sudoku rules or any other educational game (chess, eight queens, the knight’s tour problem, etc.) will most likely understand the backtracking strategy. Another contribution of our work is a mathematically sound method to transform a random Sudoku grid into a similar one which accepts only one Sudoku solution.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Integration of Serious Games in Teaching English as a Foreign Language to Iranian Children

Nowadays computers are increasingly being incorporated into school curriculums and serious games are occupying the educational games markets. This article addressed the integration of serious games as tools for learning and teaching English in Iranian schools to zero-beginner students. An experiment was concluded using Computer Assisted Language Learning (CALL) to investigate the effectiveness ...

متن کامل

Integration of Serious Games in Teaching English as a Foreign Language to Iranian Children

Nowadays computers are increasingly being incorporated into school curriculums and serious games are occupying the educational games markets. This article addressed the integration of serious games as tools for learning and teaching English in Iranian schools to zero-beginner students. An experiment was concluded using Computer Assisted Language Learning (CALL) to investigate the effectiveness ...

متن کامل

Finding Connict Sets and Backtrack Points in Clp(<)

This paper presents a method for intelligent backtracking in CLP(<). Our method integrates a depth-rst intelligent backtracking algorithm developed for logic programming with an original constraint satisfaction algorithm which naturally generates sets of connicting constraints. We prove that if CLP(<) is assumed to cover strictly the domain of real numbers, then the constraint satisfaction algo...

متن کامل

Procedure Backtracking Points and Variable Ages in an Intelligent Backtracking Schema

We present a new method to represent variable bindings in the Warren Abstract Machine (WAM), so that ages of variable bindings can be easily found using this new representation in our intelligent backtracking schema. The age of a variable bound to a non-variable term will be the youngest choice point such that backtracking to that choice point can make that variable an unbound variable again. I...

متن کامل

Finding Con ict Sets and Backtrack Points in CLP

This paper presents a method for intelligent backtracking in CLP Our method integrates a depth rst intelligent backtracking algorithm developed for logic programming with an original constraint satisfaction algorithm which naturally generates sets of con icting constraints We prove that if CLP is assumed to cover strictly the domain of real numbers then the constraint satisfaction algorithm pro...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014